home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
wildcat
/
wcolor.zip
/
WBAB.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-06-01
|
680b
|
31 lines
@echo off
if "%1" == "" goto ERROR
copy %1 \wcolor.bak > nul
wcolor -ib%1 -oa%1
if errorlevel 0 goto THEDRAW
goto ERROR
:THEDRAW
d:\draw\thedraw %1
wcolor -ia%1 -ob%1 -d%2
if errorlevel 100 goto ABORT
if errorlevel 0 goto EXIT
:ERROR
echo .
echo Batch format is "wbab BBS_file [speed]" --} eg. "wbab mainh.bbs 2400".
echo .
echo This example will display "mainh.bbs" at roughly 2400 baud, load it into
echo "THEDRAW" after converting it to ansi format. After exiting, the file is
echo re-converted to BBS format under the same name.
echo .
if not exist \wcolor.bak goto OUT
:ABORT
copy \wcolor.bak %1 > nul
:EXIT
del \wcolor.bak > nul
:OUT